﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace VISS.API.Users {

    /// <summary>
    /// This interface is used for VISS.VN
    /// Used this interface to implement operations on UserContactInfo table
    /// </summary>
    public interface IUserContactInfo {

        /// <summary>
        /// Updates the UserContactInfoEnt item.
        /// </summary>
        /// <param name="item">The item.</param>
        /// <returns>Return true if success, otherwise return false</returns>
        bool Update(UserContactInfoEnt item);

        /// <summary>
        /// Gets by user key.
        /// </summary>
        /// <param name="userKey">The user key.</param>
        /// <returns>Return UserContactInfoEnt if exists, otherwise return null</returns>
        UserContactInfoEnt GetByUserKey(string userKey);
    }
}
